﻿<%@ Page Title=".: Meta Data & Dicionário de Dados SINACOR :." Language="C#" MasterPageFile="~/MDBD.master" AutoEventWireup="true" CodeFile="Arquivos.aspx.cs" Inherits="Arquivos" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="cphCabecalho" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style3
        {
            width: 57px;
            text-align: center;
        }
        .style5
        {
            
            text-align: right;
        }
        
    </style>
</asp:Content>
<asp:Content ID="cphCorpo" ContentPlaceHolderID="cphPrincipal" Runat="Server">
 <asp:ScriptManager ID="smArquivos" runat="server">
 </asp:ScriptManager>
<asp:UpdatePanel ID="upArquivos" runat="server">
    <ContentTemplate>
    <table width="700" cellpadding="5" cellspacing="0" align="center" border="0">
        <tr>
        <td height="20"> </td>
        </tr>
        <tr>
        <td>
            <p style="font-family: Verdana; font-size:x-small; text-align: justify; color:#035395">
                Geração de arquivos. Selecione o ambiente, a empresa (obrigatórios) e o sistema 
                (opcional) e escolha qual tipo de arquivo gerar:</p>
        </td>
        </tr>
        <tr>
        <td>        
                        <p style="font-family: Verdana; font-size:x-small; color:Gray; text-align: justify; border-style:solid; border-width:thin; border-color:e8e8e8">
                     <ul>
                    <li style="color:Gray;">
                            Arquivo I. V. (Instalador de Versão) - gera um único arquivo com a criação de 
                            Tabelas, Constraints, Índices e Foreign Keys.
                    </li>
                    </ul>
                     </p>   
                    
                    </td>
                    </tr>
                    <tr>
                    <td>
                    <p style="font-family: Verdana; font-size:x-small; color:Gray; text-align: justify;">

                    <ul>                    
                    <li style="color:Gray;">
                            Arquivo Team System - gera um arquivo por objeto (Tabelas, Constraints, Índices 
                            e Foreign Keys), na pasta correspondente segundo a estrutura do Team System.
                    </li>
                </ul>
                </p>
                </td>
                </tr>
                <tr>
                <td>
                   <table class="style1" align="center" border="0" width="700" cellpadding="0" cellspacing="0">
                        <tr>
                            <td colspan="5" align="center">
                            <table cellpadding="0" cellspacing="5" border="1" width="700" bordercolor="#F1F2F2" >
                            <tr>
                            <td width="104" align="right" valign="top" bgcolor="#F1F2F2">
                                 <p style="font-family: Verdana; font-size:x-small; color:Gray; text-align:right">Ambiente&nbsp&nbsp&nbsp</p></td>
                            <td width="200" align="left">
                                <asp:DropDownList ID="ddl_cod_ambi" runat="server" AutoPostBack="True" 
                                    onselectedindexchanged="ddl_cod_ambi_SelectedIndexChanged" 
                                    style="font-family: Verdana; font-size:x-small">
                                </asp:DropDownList>
                                <asp:RangeValidator ID="rng_cod_ambi" runat="server" 
                                    ControlToValidate="ddl_cod_ambi" Display="Dynamic" 
                                    ErrorMessage="Por favor, selecione um Ambiente" MaximumValue="999" 
                                    MinimumValue="1" SetFocusOnError="True" ValidationGroup="GR1"></asp:RangeValidator>
                            </td>
                        
                            <td width="150" align="right" bgcolor="#F1F2F2">
                                <p style="font-family: Verdana; font-size:x-small; color:Gray; text-align:right">Usuário (Empresa)&nbsp&nbsp&nbsp</p></td>
                            <td align="left">
                                <asp:DropDownList ID="ddl_cod_usre" runat="server" Width="150" style="font-family: Verdana; font-size:x-small">
                                </asp:DropDownList>
                                <asp:RangeValidator ID="rng_cod_usre" runat="server" 
                                    ControlToValidate="ddl_cod_usre" Display="Dynamic" 
                                    ErrorMessage="Por favor, selecione um Usuário" MaximumValue="999" 
                                    MinimumValue="1" SetFocusOnError="True" ValidationGroup="GR1"></asp:RangeValidator>
                            </td>
                            </tr>
                            </table>
                            </td>
                        </tr>
                        <tr><td height="10"></td></tr>
                        <tr>
                        <td>
                        <table cellpadding="0" cellspacing="5" border="1" width="700" bordercolor="#F1F2F2" >
                        <tr>
                        <td align="right" width="106" bgcolor="#F1F2F2"><p style="font-family: Verdana; font-size:x-small; color:Gray; text-align: right">
                                Sistema&nbsp&nbsp&nbsp</p></td>
                            <td>
                                <asp:DropDownList ID="ddl_cod_sist" runat="server" style="font-family: Verdana; font-size:x-small" 
                                    Width="515px">
                                </asp:DropDownList></td></tr></table>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" style="text-align: center">
                                <asp:Button ID="btn_arquivo_iv" runat="server" 
                                    oncommand="btn_arquivo_iv_Command" style="font-family: Verdana; font-size:x-small" 
                                    Text="Gerar Arquivo I. V." ValidationGroup="GR1" />
                                <asp:Button ID="btn_arquivo_team_system" runat="server" 
                                    oncommand="btn_arquivo_team_system_Command" style="font-family: Verdana; font-size:x-small" 
                                    Text="Gerar Arquivo Team System" ValidationGroup="GR1" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" style="text-align: left">
                                &nbsp;<asp:Label ID="lbl_resultado" runat="server" 
                                    style="font-family: Calibri; font-weight: 700; color: #0033CC;"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </p>
                </td>
            </tr>
       </table>
    </ContentTemplate>
    <Triggers>
        <asp:PostBackTrigger ControlID="btn_arquivo_team_system" />
        <asp:PostBackTrigger ControlID="btn_arquivo_iv" />
    </Triggers>
 </asp:UpdatePanel>
</asp:Content>